package com.neutech.neusys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neutech.neusys.mapper.DepartmentMapper;
import com.neutech.neusys.po.Department;
import com.neutech.neusys.service.DepartmentService;

@Service
public class DepartmentServiceImpl implements DepartmentService{
	@Autowired
	private DepartmentMapper departmentMapper;

	@Override
	public int addDepartment(Department department) {
		int num = departmentMapper.addDepartment(department);
		return num;
	}

	@Override
	public List<Department> toQueryDepartment() {
		return departmentMapper.queryAll();
	}

}
